package com.randi.generator.service.impl;

import com.randi.generator.entity.GenTable;
import com.randi.generator.entity.GenTableColumn;
import com.randi.generator.mapper.DbTableMapper;
import com.randi.generator.service.IDbTableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DbTableService implements IDbTableService {

    @Resource
    private DbTableMapper dbTableMapper;

    @Override
    public List<GenTable> selectDbTableList(GenTable genTable) {
        return dbTableMapper.selectDbTableList(genTable);
    }

    @Override
    public List<GenTable> selectDbTableListByTableNames(String[] tableNames) {
        return dbTableMapper.selectDbTableListByTableNames(tableNames);
    }

    @Override
    public List<GenTableColumn> selectDbTableColumnsByTableName(String tableName) {
        return dbTableMapper.selectDbTableColumnsByTableName(tableName);
    }
}
